﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace org.alex.edss.Security
{
    public class Base64
    {
        public static string FromUtf8(string Utf8String)
        {
            return Convert.ToBase64String(Encoding.UTF8.GetBytes(Utf8String));
        }
        public static string ToUtf8(string Base64String)
        {
            return Encoding.UTF8.GetString(Convert.FromBase64String(Base64String));
        }
    }
}
